package com.zxh.blog.util.excel;

/**
 * 列配置
 * @author tangping.tp
 * @version $Id: ExcelColumnConfigModel, v0.1 2018年05月21日 下午8:40 yintian.llj Exp $
 */
public class ExcelColumnConfigModel {
  /**
   * 列字段名称
   */
  private String name;

  /**
   * 列头名称
   */
  private String headerName;

  /**
   * 是否可空
   */
  private boolean canEmpty;

  /**
   * 所在顺序
   */
  private int colIndex;

  public ExcelColumnConfigModel(String name, String headerName, boolean canEmpty, int colIndex){
    this.name = name;
    this.headerName = headerName;
    this.canEmpty = canEmpty;
    this.colIndex = colIndex;
  }

  /**
   * Getter method for property name.
   *
   * @return property value of name
   */
  public String getName() {
    return name;
  }

  /**
   * Setter method for property name.
   *
   * @param name value to be assigned to property name
   */
  public void setName(String name) {
    this.name = name;
  }

  /**
   * Getter method for property headerName.
   *
   * @return property value of headerName
   */
  public String getHeaderName() {
    return headerName;
  }

  /**
   * Setter method for property headerName.
   *
   * @param headerName value to be assigned to property headerName
   */
  public void setHeaderName(String headerName) {
    this.headerName = headerName;
  }

  public boolean canEmpty() {
    return canEmpty;
  }

  public void setCanEmpty(boolean canEmpty) {
    this.canEmpty = canEmpty;
  }

  /**
   * Getter method for property colIndex.
   *
   * @return property value of colIndex
   */
  public int getColIndex() {
    return colIndex;
  }

  /**
   * Setter method for property colIndex.
   *
   * @param colIndex value to be assigned to property colIndex
   */
  public void setColIndex(int colIndex) {
    this.colIndex = colIndex;
  }
}
